import Vue from "vue";
import Router from "vue-router";

Vue.use(Router);

export default new Router({
  routes: [
    {
      path: "/",
      redirect: "/index",
    },
    {
      path: "/login",
      name: "login",
      meta: { hidden: true, title: "用户登录" },
      component: (resolve) => require(["@/view/home/login.vue"], resolve),
    },
    {
      path: "/register",
      name: "register",
      meta: { hidden: true, title: "用户注册" },
      component: (resolve) => require(["@/view/home/register.vue"], resolve),
    },

    {
      path: "/index",
      name: "index",
      meta: { hidden: true, title: "首页" },
      component: (resolve) => require(["@/view/home/index.vue"], resolve),
    },
    {
      path: "/zjdetails",
      name: "zjdetails",
      meta: { hidden: true, title: "XXX通信卡激活缴费流程" },
      component: (resolve) => require(["@/view/home/zjdetails.vue"], resolve),
    },
    {
      path: "/agreement",
      name: "agreement",
      meta: { hidden: true, title: "XXX荷包APP用户协议" },
      component: (resolve) => require(["@/view/home/agreement.vue"], resolve),
    },
    {
      path: "/details/:id",
      name: "odersDetails",
      meta: { hidden: true, title: "订单详情" },
      component: (resolve) => require(["@/view/home/details.vue"], resolve),
    },
    {
      path: "/pay/:id",
      name: "pay",
      meta: { hidden: true, title: "确认订单" },
      component: (resolve) => require(["@/view/home/pay.vue"], resolve),
    },
    {
      path: "/add",
      name: "add",
      meta: { hidden: true, title: "收货地址" },
      component: (resolve) => require(["@/view/home/add.vue"], resolve),
    },
    {
      path: "/bonus",
      name: "bonus",
      meta: { hidden: true, title: "分红" },
      component: (resolve) => require(["@/view/bonus/index.vue"], resolve),
    },
    {
      path: "/list/:acctc",
      name: "list",
      meta: { hidden: true, title: "列表" },
      component: (resolve) => require(["@/view/list/list.vue"], resolve),
    },
    {
      path: "/my",
      name: "my",
      meta: { hidden: true, title: "我的" },
      component: (resolve) => require(["@/view/my/index.vue"], resolve),
    },
    {
      path: "/orders",
      name: "orders",
      meta: { hidden: true, title: "我的订单" },
      component: (resolve) => require(["@/view/my/orders.vue"], resolve),
    },
    {
      path: "/myteam",
      name: "myteam",
      meta: { hidden: true, title: "我的市场" },
      component: (resolve) => require(["@/view/my/myteam.vue"], resolve),
    },
    {
      path: "/referralChildCount",
      name: "referralChildCount",
      meta: { hidden: true, title: "业务经理" },
      component: (resolve) =>
        require(["@/view/my/referralChildCount.vue"], resolve),
    },

    {
      path: "/ascription",
      name: "ascription",
      meta: { hidden: true, title: "网体归属" },
      component: (resolve) => require(["@/view/my/ascription.vue"], resolve),
    },
    {
      path: "/card",
      name: "card",
      meta: { hidden: true, title: "开卡校验" },
      component: (resolve) => require(["@/view/my/card.vue"], resolve),
    },
    {
      path: "/withdrawal",
      name: "withdrawal",
      meta: { hidden: true, title: "钱包明细" },
      component: (resolve) => require(["@/view/withdrawal/index.vue"], resolve),
    },
    {
      path: "/bndingBank",
      name: "bndingBank",
      meta: { hidden: true, title: "绑定银行卡" },
      component: (resolve) => require(["@/view/withdrawal/bank.vue"], resolve),
    },
    {
      path: "/withdrawalList",
      name: "withdrawalList",
      meta: { hidden: true, title: "提现记录" },
      component: (resolve) => require(["@/view/withdrawal/list.vue"], resolve),
    },
    {
      path: "/realName",
      name: "realName",
      meta: { hidden: true, title: "实名认证" },
      component: (resolve) =>
        require(["@/view/withdrawal/realName.vue"], resolve),
    },
    {
      path: "/transfer",
      name: "transfer",
      meta: { hidden: true, title: "转帐" },
      component: (resolve) =>
        require(["@/view/withdrawal/transfer.vue"], resolve),
    },
    {
      path: "/MyExaminationGaper",
      name: "MyExaminationGaper", //我的提卷
      meta: { hidden: true, title: "我的提货券" },
      component: (resolve) =>
        require(["@/view/my/MyExaminationGaper/index.vue"], resolve),
    },
    {
      path: "/MyTransfer/:id",
      name: "Transfer", //我的提卷
      meta: { hidden: true, title: "提货券转让" },
      component: (resolve) =>
          require(["@/view/my/Transfer/index.vue"], resolve),
    },
	{
	  path: "/luorderNo",
	  name: "luorderNo", //第三方商城核销
	  meta: { hidden: true, title: "第三方商城核销" },
	  component: (resolve) =>
	      require(["@/view/my/thirdVerify/luorderNo.vue"], resolve),
	}
  ],
});
